package com.boarsoft.flow.demo.login;

import com.boarsoft.common.Util;
import com.boarsoft.flow.core.bean.JudgeHandler;
import com.boarsoft.flow.demo.bean.User;

public class LoignCheckHandler implements JudgeHandler {

	@Override
	public boolean judge(Object data, Throwable throwable) {
		System.out.println(data.getClass().getName());
		User u = (User) data;
		return Util.strIsNotEmpty(u.getId());
	}

}
